#ifndef DATATYPE_H
#define DATATYPE_H

#include <iostream>
void dataType();

void dataType(){

std::cout << "******TESTING DATATYPE********" << std::endl;
   //Intend to unuse, use debug mode to check
char ch = 'F'; // 8 bits (usually)
std::cout<< "ch " << ch << std::endl;
short val1 = 128; // 16 bits
std::cout<< "val1 " << val1 << std::endl;
int val2 = 32; // 32 bits
std::cout<< "val2 " << val2 << std::endl;
long val3 = 2022; // 32 bits
std::cout<< "val3 " << val3 << std::endl;
long long val4 = 7837432; // 64 bits
std::cout<< "val4 " << val4 << std::endl;
float decimalVal1 = 5.0; // 32 bits (usually)
std::cout<< "decimalVal1 " << decimalVal1 << std::endl;
double decimalVal2 = 5.0; // 64 bits (usually)
std::cout<< "decimalVal2 " << decimalVal2 << std::endl;
bool bVal = true; // 1 bit
std::cout<< "bVal " << bVal << std::endl;

int val = 2147483647;
val = val + 1;

std::cout << val << std::endl;
// Output: Turn into negative value -2147483648
//https://baike.baidu.com/item/2147483647/8539618?fr=aladdin
}


#endif // DATATYPE_H
